package br.net.woodstock.tickettoride.client.web.taglib;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

public class AbstractParamTag extends SimpleTagSupport {

	private String	name;

	private String	value;

	@Override
	public void doTag() throws JspException, IOException {
		AbstractURLTag urlTag = (AbstractURLTag) this.getParent();
		urlTag.getParams().put(this.name, this.value);
	}

	public String getName() {
		return this.name;
	}

	public void setName(final String name) {
		this.name = name;
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(final String value) {
		this.value = value;
	}

}
